package com.jsoft.jsofted.platform.mapper;

import com.diboot.core.mapper.BaseCrudMapper;
import com.jsoft.jsofted.platform.entity.TenantEntity;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface TenantMapper extends BaseCrudMapper<TenantEntity> {
    @Select("select * from sys_tenant where id = #{tenantId} and username = #{username} and password = #{password}")
    TenantEntity getForLogin(String tenantId, String username, String password);

    int insertInitializedData(TenantEntity params);
}

